//
//  ViewController.m
//  UI03_homework
//
//  Created by Hanlingyu on 16/7/18.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "ViewController.h"
#import "Ltq_labelButton.h"
#import "Ltq_imageViewButton.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    Ltq_labelButton *labelButton = [[Ltq_labelButton alloc] initWithFrame:CGRectMake(100, 100, 200, 50) title:[NSString stringWithFormat:@"登录"] titleColor:[UIColor blackColor] addTarget:self action:@selector(click:)];
    labelButton.backgroundColor = [UIColor redColor];
    [self.view addSubview:labelButton];
    
    
    Ltq_imageViewButton *imageViewButton = [[Ltq_imageViewButton alloc] initWithFrame:CGRectMake(100, 200, 200, 200) backgroundColor:[UIColor yellowColor] addImage:[UIImage imageNamed:@"userHeaderImage.jpg"] addTarget:self action:@selector(click:)];
    [self.view addSubview:imageViewButton];




}


- (void)click:(Ltq_labelButton *)labelButton {
    
    
    NSLog(@"dsfasdfsad");
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
